<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>上传头像</title>
</head>
<body>
<h1>上传头像</h1>
<span th:text="${msg}" th:if="${msg}"></span>
<form action="/savePhoto" method="post" enctype="multipart/form-data">
  <input type="hidden" name="teacherId" th:value="${teacherId}">
  <input type="hidden" name="studentId" th:value="${studentId}">
  选择文件：<input type="file" name="file"><br>
  <button type="submit">上传</button>
</form>
</body>
</html>
